<template>
  <div id="app">
    <van-tabbar v-model="active" active-color="#ee0a24" inactive-color="#aaa" @change="onChange" style="z-index:3">
      <van-tabbar-item icon="info-o" replace to="/">规则</van-tabbar-item>
      <van-tabbar-item icon="records" replace to="/vote">投票</van-tabbar-item>
      <van-tabbar-item icon="bar-chart-o" replace to="/rank">排行榜</van-tabbar-item>
    </van-tabbar>

    <router-view />
  </div>
</template>

<script>
  export default {
    data() {
      return {
        active: 0
      }
    },
    methods: {
      onChange(index) {

      },
    },
  };
</script>
<style lang="less">
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
  }
</style>